package com.hbnu.pojo;

import java.util.HashSet;
import java.util.Set;

public class Classes {
    private int cid;
    private String Cname;
    //    Set<Student> students = new HashSet<>();
    Set<Teacher> teacherSet = new HashSet<>();

    public Set<Teacher> getTeacherSet() {
        return teacherSet;
    }

    public void setTeacherSet(Set<Teacher> teacherSet) {
        this.teacherSet = teacherSet;
    }

    public String getCname() {
        return Cname;
    }

    public void setCname(String cname) {
        Cname = cname;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }


//    public Set<Student> getStudents() {
//        return students;
//    }

//    public void setStudents(Set<Student> students) {
//        this.students = students;
//    }
//
//    public Teacher getTeacher() {
//        return teacher;
//    }
//
//    public void setTeacher(Teacher teacher) {
//        this.teacher = teacher;
//    }

//    private Teacher teacher;


//    public String toString() {
//        return "Classes{" +
//                "cid=" + cid +
//                ", Cname='" + Cname + '\'' +
//                ", students=" + students +
//                '}';
//    }


    @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", Cname='" + Cname + '\'' +
                ", teacherSet=" + teacherSet +
                '}';
    }
}
